package cn.itqiqi.student_system_java.controller;

import cn.itqiqi.student_system_java.pojo.Server;
import cn.itqiqi.student_system_java.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 * 
 *
 */
@RestController
@RequestMapping("/monitor/server")
public class ServerController
{
    @Autowired
    private ResultUtils resultUtils;

    @GetMapping()
    public String getInfo() throws Exception
    {
        Server server = new Server();
        server.copyTo();
        System.out.println(server);
        return  resultUtils.success(server,"服务器的详细信息哦！！！ 不要外传 亲 ......");
    }
}
